package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
//创业达人
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_eminent_person")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class EminentPersonModel {
    @TableId(type = IdType.AUTO)
    private Integer id;//创业达人ID
    private String name;//姓名
    private String faceUrl;//头像
    private String identity;//身份
    private String introduce;//简介
    private String deed;//事迹

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;


}
